package summer_vacation.yangyiqing.m201508;

/**
 * Created by Administrator on 2015/8/20 0020.
 */
public class Java_30 {
    public static void main(String[] args){
        //��x��y��z�ֱ��ʾ����ĸ��С��;
        int x,y,z;
        for(x=1;x<20;x++){
            for(y=1;y<33;y++){
                if(x*5+y*3<=100){
                    z=3*(100-(x*5+y*3));
                    if(x+y+z==100){
                        System.out.println("公鸡"+x+"只，母鸡"+y+"只，小鸡"+z+"只");
                    }
                }
            }
        }
    }
}
